Fix set_focus_child handling during focus changes
authorAlexander Larsson <alexl@redhat.com>
Tue, 13 Dec 2011 23:23:57 +0000 (00:23 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 13 Dec 2011 23:26:40 +0000 (00:26 +0100)
commit10b5ec20f2d42949bbec2f3519dbf5dca380fe49
tree3486569669655204a6704990ba08d3fc1b8bfecc
parent064204da9b4d17c66760c2b57fd20b4ca510d89d
Fix set_focus_child handling during focus changes

In many cases we used to set focus_child to NULL all the way up
to the top and then to the right value, even if there was
a common ancestor, meaning these see a temporary NULL value for
focus_child. Only when the new focus widgets direct parent was
in the previous ancestor list did we stop early.

This fixes that by always stopping propagation when reaching
the common ancestor.
gtk/gtkwidget.c